﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program07
{
    /// <summary>
    /// 实现原价打00折
    /// </summary>
    class CashRebate:CashSuper
    {
        //具体打几折
        private double _maneyRebate = 1d;
        public CashRebate(double maneyRebate)
        {
            this._maneyRebate = maneyRebate;
        }
        public override decimal AcceptCash(decimal maney)
        {
            return maney * (decimal)_maneyRebate;
        }
    }
}
